package com.cicigodd.brick.plug.system.dict.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cicigodd.brick.plug.common.response.PageResult;
import com.cicigodd.brick.plug.system.dict.api.SysDictServiceApi;
import com.cicigodd.brick.plug.system.dict.entity.SysDict;
import com.cicigodd.brick.plug.system.dict.request.*;
import com.cicigodd.brick.plug.system.dict.response.SysDictDetailResponse;
import com.cicigodd.brick.plug.system.dict.response.SysDictListResponse;

import java.util.List;

/**
 * 系统字典
 *
 * @author cicigodd
 * @date 2022/12/12 13:27:02
 */
public interface SysDictService extends IService<SysDict>, SysDictServiceApi {

    /**
     * 添加
     *
     */
    void add(SysDictAddRequest sysDictAddRequest);

    /**
     * 删除
     *
     */
    void delete(SysDictDeleteRequest sysDictDeleteRequest);

    /**
     * 编辑
     *
     */
    void edit(SysDictEditRequest sysDictEditRequest);

    /**
     * 详情
     *
     */
    SysDictDetailResponse detail(SysDictDetailRequest sysDictDetailRequest);

    /**
     * 分页列表
     *
     */
    PageResult<SysDictListResponse> list(SysDictListRequest sysDictListRequest);

    List<SysDictListResponse> listAll(SysDictListRequest sysDictListRequest);
}